﻿@model IEnumerable<SerieSpotter.Models.Show>

@{
    ViewBag.Title = "Index";
    // vars kunne hier worden geschreven om zo bv iets op te halen en te tonen in deze view
}

@section featured {
    <section class="featured">
        <div class="content-wrapper">
            <hgroup class="title">
                <h1>Series</h1>
            </hgroup>
        </div>
    </section>
}



<form method="get" action="@Url.Action("Index")"
     data-seriespotter-ajax="true" data-seriespotter-target="#seriesList">
    <input type="search" name="searchTerm" data-seriespotter-autocomplete="@Url.Action("Autocomplete")"/>
    <input type="submit" value=@Resources.Resource.Zoeken />
</form> 




@Html.Partial("_Series", Model)

<p>
    @if (User.IsInRole("admin"))
    {
        @Html.ActionLink(@Resources.Resource.Create, "Create")
    }
</p>

